]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageTray: Notify count when adding a notification
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 9 May 2024 11:47:24 +0000 (13:47 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 9 May 2024 11:47:24 +0000 (13:47 +0200)
Adding a notification clearly constitutes a count change, but
the notify call was accidentally dropped during the overhaul
of the notification API.

Fixes: 34f05b075b ("messageTray: Let the tray decide whether to show a
banner")

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3308>

js/ui/messageTray.js

index 00a2a9b66a1da4d75405094993f79cfce8b8aed1..d88ef4223f7ca8570e714afaf90434c5ad31a33d 100644 (file)
@@ -572,6 +572,7 @@ export const Source = GObject.registerClass({
 
         this.emit('notification-added', notification);
         this.emit('notification-request-banner', notification);
+        this.countUpdated();
     }
 
     destroy(reason) {